package com.yyys.web.entity;

import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by zhengsenwen on 2017/7/31.
 */
@Entity
@Access(AccessType.PROPERTY)
@Table(name = "[Flow_DRInfo]")
public class DRInfo implements Serializable{
    private static final Long serialVersionUID = 1L;
    private Integer  id;
    private String drName;
    private String drIp;
    private String drAddress;
    private Integer  drMealNum;
    private Integer  drFreeNum;
    private String drPic;
    private String note;
    private Integer  czryid;
    @Type(type = "datetime")
    private String czsj;
    @Type(type = "tinyint")
    private Integer isrec;
    @Type(type = "text")
    private String drDesc;
    private String phoneNumber;


    @Id
    @Column(name = "id",nullable = false)
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name="DRName",nullable = false)
    public String getDrName() {
        return drName;
    }
    public void setDrName(String drName) {
        this.drName = drName;
    }

    @Column(name = "DRIp",nullable = false)
    public String getDrIp() {
        return drIp;
    }
    public void setDrIp(String drIp) {
        this.drIp = drIp;
    }

    @Column(name = "DRAddress",nullable = true)
    public String getDrAddress() {
        return drAddress;
    }
    public void setDrAddress(String drAddress) {
        this.drAddress = drAddress;
    }


    @Column(name = "DRMealNum",nullable = false)
    public Integer getDrMealNum() {
        return drMealNum;
    }
    public void setDrMealNum(Integer drMealNum) {
        this.drMealNum = drMealNum;
    }


    @Column(name = "DRFreeNum",nullable = false)
    public Integer getDrFreeNum() {
        return drFreeNum;
    }
    public void setDrFreeNum(Integer drFreeNum) {
        this.drFreeNum = drFreeNum;
    }


    @Column(name = "DRPic",nullable = false)
    public String getDrPic() {
        return drPic;
    }
    public void setDrPic(String drPic) {
        this.drPic = drPic;
    }

    @Column(name = "Note",nullable = true)
    public String getNote() {
        return note;
    }
    public void setNote(String note) {
        this.note = note;
    }

    @Column(name = "CZRYID",nullable = true)
    public Integer getCzryid() {
        return czryid;
    }
    public void setCzryid(Integer czryid) {
        this.czryid = czryid;
    }

    @Column(name = "CZSJ",nullable = true)
    public String getCzsj() {
        return czsj;
    }
    public void setCzsj(String czsj) {
        this.czsj = czsj;
    }

    @Column(name = "IsRec",nullable = true,columnDefinition = "INT default 0")
    public Integer getIsrec() {
        return isrec;
    }
    public void setIsrec(Integer isrec) {
        this.isrec = isrec;
    }

    @Column(name = "DRDesc",nullable = true)
    public String getDrDesc() {
        return drDesc;
    }
    public void setDrDesc(String drDesc) {
        this.drDesc = drDesc;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
